﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities;

/// <summary>
/// 车间表
/// </summary>
public class MdWorkshop : Entity<int>
{
    /// <summary>
    /// 车间编码 (Not Null, Max Length: 64)
    /// </summary>
    [Required]
    [MaxLength(64)]
    public string WorkshopCode { get; set; }=string.Empty;

    /// <summary>
    /// 车间名称 (Not Null, Max Length: 255)
    /// </summary>
    [Required]
    [MaxLength(255)]
    public string WorkshopName { get; set; } = string.Empty;

    /// <summary>
    /// 面积
    /// </summary>
    public double? Area { get; set; }

    /// <summary>
    /// 负责人 (Max Length: 64)
    /// </summary>
    [MaxLength(64)]
    public string Charger { get; set; } = string.Empty;

    /// <summary>
    /// 是否启用 (Not Null, Default: 'Y')
    /// </summary>
    [MaxLength(1)]
    [Required]
    public char EnableFlag { get; set; } = 'Y';

    /// <summary>
    /// 备注 (Max Length: 500)
    /// </summary>
    [MaxLength(500)]
    public string? Remark { get; set; }

    /// <summary>
    /// 创建人 (Max Length: 64)
    /// </summary>
    [MaxLength(64)]
    public string? CreateBy { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreateTime { get; set; }

    /// <summary>
    /// 更新人 (Max Length: 64)
    /// </summary>
    [MaxLength(64)]
    public string? UpdateBy { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }
}

